package cn.wolfcode.wolf2w.repostiory;



import org.springframework.data.mongodb.repository.MongoRepository;
import cn.wolfcode.wolf2w.domain.UserInfo;

import java.util.List;


public interface UserInfoRepository  extends MongoRepository<UserInfo, String>{

    /**
     * 根据手机查询用户
     * @param phone
     * @return
     */
    UserInfo findByPhone(String phone);

    /**
     * 目的地名查用户
     * @param keyword
     * @return
     */
    List<UserInfo> queryByCity(String keyword);
}
